5 REM:TRIP PLANNE BY DASPF REVISED 3-87 10 POKE53280,0:POKE53281,0:PRINT"[147]" 20 PRINT"FAMILY TRIP PLANNER" 23 PRINT"A [151]DASPF PROGRAM" 25 PRINT"HIT [129]ANY KEY AND LET'S PLAN YOUR FAMILY'S VACATION" 27 GETQ$:IFQ$=""THEN27 30 PF$="PLANE FARE":CC$="CAR COST":LD$="LODGING":FD$="FOOD":MC$="MISC" 32 PO$="PRINT OUT":TR$="TRIP INFO" 35 PRINT"[147]":PRINT"TRIP MENU" 40 PRINT""1" "PF$ 42 PRINT""2" "CC$ 43 PRINT""3" "LD$ 44 PRINT""4" "FD$ 45 PRINT""5" "MC$ 46 PRINT""6" "PO$ 49 PRINT""7" "TR$ 50 PRINT"[149]TYPE NUMBER OF YOUR CHOICE" 60 GETZ$:IFZ$=""THEN60 61 IFZ$="1"THEN100 62 IFZ$="2"THEN200 63 IFZ$="3"THEN300 64 IFZ$="4"THEN400 65 IFZ$="5"THEN500 66 IFZ$="6"THEN600 67 IFZ$="7"THEN700 69 GOTO60 100 PRINT"[147]"PF$ 105 INPUT"DO YOU HAVE A TOTAL PACKAGE PLANE FARE COST FOR YOUR FAMILY";A$ 107 IFA$="N"THEN120 108 IFA$="Y"THEN115 109 GOTO105 115 INPUT"WHAT IS THE [149]TOTAL PACKAGE COST";PF:GOTO130 120 INPUT"HOW MANY ARE GOING ON THIS TRIP";HM 122 CS(B)=0:SS=0 125 B=0:FORA=1TOHM:B=B+1:PRINT"WHAT IS THE COST OF FARE # "B:INPUTCS(B) 126 SS=SS+CS(B):NEXT 127 PF=SS 130 INPUT"[149]WANT TO MAKE A CHANGE";MK$ 140 IFMK$="Y"THEN100 145 IFMK$="N"THEN160 150 GOTO130 160 PRINT"TOTAL PLANE FARE = $"INT(PF) 165 PRINT"[149]TYPE ANY KEY FOR MENU" 170 GETQ$:IFQ$=""THEN170 175 GOTO35 199 GOTO199 200 PRINT"[147]"CC$:CC=0 210 INPUT"[149]RENT A CAR";RC$ 220 IFRC$="Y"THEN250 222 IFRC$="N"THEN265 224 GOTO210 250 PRINT"[147]MOST RENT A CARS ARE MILAGE FREE" 251 PRINT"IF THERE IS A MILAGE CHARGE ON YOUR CAR" 252 PRINT"ESTIMATE THE COST AND INCLUDE IT IN THE MISC. SECTION" 254 INPUT"NUMBER OF RENT DAYS";RD 255 INPUT"COST OF CAR PER DAY";RE 257 INPUT"ESTIMATED GAS COST PER DAY";RF 260 CC=(RD*RE)+(RD*RF) 262 PRINT"TOTAL ESTIMATED CAR COST = $ [146]"INT(CC):GOTO295 265 INPUT"[147]MILES PER GALLON YOUR CAR GETS";RG:IFRG=0THEN200 267 INPUT"ESTIMATED MILES YOU WILL DRIVE";RH 269 INPUT"ESTIMATED COST PER GALLON";RI 270 INPUT"ANY MISC. CAR COST";RJ 272 CC=((RH/RG)*RI)+RJ 280 GOTO262 295 PRINT"[149]TYPE ANY KEY FOR MENU" 296 GETQ$:IFQ$=""THEN296 297 GOTO35 299 GOTO299 300 PRINT"[147]"LD$ 303 PRINT"COST OF LODGING IN MOTELS AND HOTELS" 304 PRINT"IF DIFFERENT EVERYWHERE, SO YOU MUST" 305 PRINT"ESTIMATE HOW MUCH EACH NIGHT YOU ARE" 306 PRINT"WILLING TO SPEND" 310 INPUT"[149]ESTIMATED COST PER NIGHT";DA 315 INPUT"HOW MANY NIGHTS";DB 320 LD=DB*DA:PRINT"TOTAL ESTIMATED LODGING COST = $[146]"INT(LD) 330 PRINT"TYPE ANY KEY FOR MENU" 335 GETQ$:IFQ$=""THEN335 337 GOTO35 399 GOTO399 400 PRINT"[147]"FD$ 402 PRINT"[149]FOOD ON A TRIP IS THE HARDEST" 404 PRINT"TO ESTIMATE. THIS PROGRAM WILL ASK" 406 PRINT"THE TOTAL COST OF EACH MEAL PER DAY" 408 PRINT"FOR EXAMPLE: TOTAL COST FOR LUNCH WILL" 410 PRINT"BE $10. ON LONG TRIPS IT IS CHEAPER" 420 PRINT"TO PACK LUNCH MEATS AND BREAD THAN" 430 PRINT"STOP AND BUY YOUR LUNCH EVERYDAY" 432 INPUT"TOTAL NUMBER OF DAYS";WA 434 INPUT"ESTIMATED COST OF BREAKFAST FOR 1 DAY";WB 436 INPUT"ESTIMATED COST OF LUNCH FOR 1 DAY";WC 438 INPUT"ESTIMATED COST OF DINNER FOR 1 DAY";WD 440 WE=(WB+WC+WD):FD=WE*WA 450 PRINT"TOTAL ESTIMATED COST FOR ONE DAY = $[146]"WE 452 PRINT"TOTAL ESTIMATED COST FOR TRIP = $[146]"FD 460 PRINT"[151]TYPE ANY KEY FOR MENU" 470 GETQ$:IFQ$=""THEN470 480 GOTO35 499 GOTO499 500 PRINT"[147]"MC$:WW=0 502 PRINT"[149]TYPE IN ANY MISC. ITEMS FIRST" 504 PRINT"THEN THE ESTIMATED COST NEXT" 506 PRINT"IMPORTANT[146]: TYPE DONE[146][149] WHEN FINISHED":H=0 510 FORH=1TO20:INPUT"ITEM";G$(H):IFG$(H)="DONE"THEN530 512 INPUT"COST";G(H) 514 PRINT"(TYPE 'DONE' WHEN FINISH)[146]" 516 IFG$(H)="DONE"THEN530 522 WW=WW+G(H):NEXT 530 FORX=1TOH 532 PRINTG$(X);G(X), 534 NEXT 536 PRINT 540 PRINT"TOTAL ESTIMATED COST OF ALL MISC ITEMS" 542 PRINT" = $"WW 550 PRINT"[151]TYPE ANY KEY FOR MENU" 560 GETQ$:IFQ$=""THEN560 570 GOTO35 599 GOTO599 600 PRINT"[147] PRINT OUT" 602 PRINT"TYPE S[146] TO PRINT TO SCREEN" 604 PRINT"TYPE P[146] TO PRINT TO PRINTER" 608 GETA$:IFA$=""THEN608 610 IFA$="S"THEN615 612 IFA$="P"THEN660 614 GOTO608 615 PRINT"[147]" 617 PRINT"TRIP FOR THE "BE$" FAMILY" 619 PRINT"FROM "BD$ " TO "BB$ 621 PRINT"LEAVING "BC$ 623 PRINT"THIS REPORT WAS MADE UP ON "BF$ 630 PRINT"TOTAL AIR FARE = $ "PF 635 PRINT"ESTIMATED CAR COST = $ "CC 637 PRINT"ESTIMATED LODGING = $ "LD 639 PRINT"ESTIMATED FOOD COST = $ "FD 641 PRINT"ESTIMATED MISC. COST = $ "WW 645 AQ=PF+CC+LD+FD+WW 650 PRINT"TOTAL ESTIMATED TRIP COST = " 655 PRINT" $ "AQ 657 GOTO692 660 OPEN4,4 662 PRINT#4,"TRIP PLANNER FOR THE "BE$ " FAMILY" 664 PRINT#4:PRINT#4,"FROM "BD$" TO "BB$ 666 PRINT#4:PRINT#4,"THE "BE$"'S WILL BE LEAVING "BC$ 668 PRINT#4:PRINT#4,"THIS REPORT WAS MADE AND PRINTED ON "BF$:PRINT#4:PRINT#4 670 PRINT#4,"TOTAL COST OF AIR FARE = $"PF:PRINT#4 672 PRINT#4,"ESTIMATED CAR COST = $"CC:PRINT#4 674 PRINT#4,"ESTIMATED COST OF LODGING FOR "DB" DAYS = $"LD:PRINT#4 676 PRINT#4,"ESTIMATED FOOD COST PER DAY = $"WB+WC+WD:PRINT#4 678 PRINT#4,"ESTIMATED FOOD COST FOR COMPLETE TRIP = $"FD:PRINT#4 680 PRINT#4,"MISC. COST =" 682 FORWQ=1TOH:PRINT#4,G$(WQ);G(WQ),:NEXT 684 PRINT#4,"TOTAL MISC COST = $"WW:PRINT#4 688 AQ=PF+CC+LD+FD+WW 690 PRINT#4,"TOTAL ESTIMATED COST OF ENTIRE TRIP = $"AQ:CLOSE4 692 INPUT"ANOTHER PRINT OUT";FX$ 694 IFFX$="Y"THEN600 696 GOTO35 699 GOTO699 700 PRINT"[147][151]JUST TYPE IN YOUR ANSWERS AND HIT RETURN" 710 INPUT"WHERE ARE YOU GOING";BB$ 720 INPUT"WHEN ARE YOU GOING";BC$ 730 INPUT"WHAT CITY ARE YOU LEAVING FROM";BD$ 740 INPUT"WHAT IS THE FAMILY NAME";BE$ 750 INPUT"WHAT IS TODAY'S DATE";BF$ 760 PRINT"[149]THANK YOU FOR ANSWERING THESE QUESTIONS" 770 PRINT"NOW TYPE ANY KET TO RETURN TO THE MENU" 780 GETQ$:IFQ$=""THEN780 790 GOTO35